settings = {
    number: { title: "震动强度", type: 'int', default: 123, range: [1, 10] },
    text: { title: "文本测试", type: 'string', default: '你好' },
    bool: { title: "布尔变量", summary: '我是说明', type: 'checkbox', default: false },
    choice: { title: "单选", summary: '选择类型', type: 'single_choice', items: ['一', '二'] }
}

config = registerSettings("js_sample", settings, 0)

print(config.getInt('number'))
config.set('number', 1)
print(config.getInt('number'))

s = config.getString('text')
speak(s)
print(s)
print(config.getBoolean('bool'))